package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_user_role_action;

import cn.com.api.mapper.ApiT_user_role_actionMapper;

import cn.com.api.service.ApiT_user_role_actionService;

/**
 * 
 **/
@Service
public class T_user_role_actionServiceImplBase {
	@Autowired
	private ApiT_user_role_actionMapper apiT_user_role_actionMapper;
    
    // 根据id获取
	public ApiT_user_role_action findT_user_role_actionById(Integer id){
		ApiT_user_role_action t_user_role_action = apiT_user_role_actionMapper.findT_user_role_actionById( id );
		return t_user_role_action;
	}
    
    //查看数据集
	public List<ApiT_user_role_action> findT_user_role_actions(){
        List<ApiT_user_role_action> t_user_role_actions = apiT_user_role_actionMapper.findT_user_role_actions();
		return t_user_role_actions;
    }
    
	// 添加
	public int insertT_user_role_action(ApiT_user_role_action t_user_role_action){
		int ret_I= apiT_user_role_actionMapper.insertT_user_role_action(t_user_role_action);
		return ret_I;
	}

	// 修改
	public int updateT_user_role_action(ApiT_user_role_action t_user_role_action){
		int ret_I= apiT_user_role_actionMapper.updateT_user_role_action(t_user_role_action);
		return ret_I;
	}
	
    // 删除
	public int deleteT_user_role_action(Integer id){
		int ret_I= apiT_user_role_actionMapper.deleteT_user_role_action( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		
	//删除根据Role_id
    public int T_user_role_actionDeleteByRole_id(String role_id){
		int ret_I= apiT_user_role_actionMapper.T_user_role_actionDeleteByRole_id(role_id);
		return ret_I;
	}
	
    //获取根据Role_id
    public List<ApiT_user_role_action> findT_user_role_actionsByRole_id(String role_id){
        List<ApiT_user_role_action> t_user_role_actions = apiT_user_role_actionMapper.findT_user_role_actionsByRole_id(role_id);
		return t_user_role_actions;
    }

		
	//删除根据Action_id
    public int T_user_role_actionDeleteByAction_id(String action_id){
		int ret_I= apiT_user_role_actionMapper.T_user_role_actionDeleteByAction_id(action_id);
		return ret_I;
	}
	
    //获取根据Action_id
    public List<ApiT_user_role_action> findT_user_role_actionsByAction_id(String action_id){
        List<ApiT_user_role_action> t_user_role_actions = apiT_user_role_actionMapper.findT_user_role_actionsByAction_id(action_id);
		return t_user_role_actions;
    }

		

	//region Indexs revelant
    
    
    
    
}


